
<h2>Chamado:&nbsp;&nbsp;<b>${chamado.id}</b></h2>
<div id="detalhesConsultaChamado">
	<table style="width: 630px; border: 1px solid black;" border=1>
		<col width='120px' />
		<col width='510px' />
		<tr>
			<th style='border: 1px solid black;' align="left">Assunto</th>
			<td style='border: 1px solid black;' align="left">${chamado.assunto}</td>
		</tr>
		<tr>
			<th style='border: 1px solid black;' align="left">Descricao</th>
			<td style='border: 1px solid black;' align="left">${chamado.descricao}</td>
		</tr>
		<tr>
			<th style='border: 1px solid black;' align="left">Status</th>
			<td style='border: 1px solid black;' align="left">${chamado.status}</td>
		</tr>
		<tr>
			<th style='border: 1px solid black;' align="left">Requisitante</th>
			<td style='border: 1px solid black;' align="left">${chamado.usuario.nome}</td>
		</tr>
		
		<tr>
			<th style='border: 1px solid black;' align="left">Atendente</th>
			<td style='border: 1px solid black;' align="left">
			#{if chamado.atendente != null}
				${chamado.atendente.nome}
			#{/if}	
			</td>
		</tr>
		<tr>
			<th style='border: 1px solid black;' align="left">Solucao</th>
			<td style='border: 1px solid black;' align="left">
			#{if chamado.solucao != null}
				${chamado.solucao}
			#{/if}
			</td>
		</tr>
	</table>
	<br><br>
	<div id="chamadoAcoes">
		<input type="hidden" name="idChamado" value="${chamado.id}" />
		#{if chamado.atendente == null}
				<input type="submit" name="Atender" value="Atender">&nbsp;&nbsp;&nbsp;&nbsp;
		#{/if}
		#{if chamado.atendente != null}
			#{if chamado.atendente == pessoaCorrente}
				<br>
				<hr>
				<br>
				<textarea name="descricaoSolucao" rows="3" cols="35"></textarea>
				<br>
				<input type="submit" name="Solucionar" value="Cadastrar a Solucao">&nbsp;&nbsp;&nbsp;&nbsp;
			#{/if}
		#{/if}		
		
	</div>
</div>